package com.order.flowserver.contract.datacontract;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.order.flowserver.contract.datacontract.code.RspCode;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <br>
 *
 * @author 李恒
 * @version 1.0
 * @date: 2016/11/17 0017 下午 6:03
 */
@ApiModel(value = "base响应对象")
public class BaseResponse {
	private String resultCode = RspCode.SUCCESS.getCode();

	private String resultMessage = RspCode.SUCCESS.getMessage();

	@ApiModelProperty(value = "结果编码", required = true)
	@JsonProperty(value = "ResultCode", required = true)
	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	@ApiModelProperty(value = "结果描述", required = true)
	@JsonProperty(value = "ResultMessage", required = true)
	public String getResultMessage() {
		return resultMessage;
	}

	public void setResultMessage(String resultMessage) {
		this.resultMessage = resultMessage;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}
}